package com.dongdongshop.service;

import com.dongdongshop.pojo.PageResult;
import com.dongdongshop.pojo.TbGoods;
import com.dongdongshop.pojo.TbGoodsDesc;
import com.dongdongshop.pojo.TbItem;
import com.dongdongshop.vo.GootsVO;

import java.util.List;

public interface TbGoodsService {

    //添加商品(三表添加)
    void add(TbGoods tbGoods, TbGoodsDesc tbGoodsDesc, TbItem tbItem);

    //查询商品信息(要求分页)
    PageResult<GootsVO> TbGoodsshowall(Integer pageNum, Integer pageSize, String goodsName);

    //删除单个数据
    void deleteTbGoods(Long id);

    //删除多个数据
    void deleteallTbGoods(List<Long> ids);

    //审核通过
    void updateallTbGoodsbya(List<Long> ids);

    //审核驳回
    void updateallTbGoodsbyb(List<Long> ids);

    //根据id查询数据
    TbGoods getGoodsById(Long goodsId);

    //根据id查询数据
    TbGoodsDesc getGoodsDescById(Long goodsId);

    //调用goods接口查询TbItem数据(根据id查询数据)
    List<TbItem> getTbItemByGoodsId(Long goodsId);
}
